package com.mxw.product.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "product")
public class Product {
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 编码
     */
    @TableField(value = "PRODUCT_CODE")
    private String productCode;

    /**
     * 名称
     */
    @TableField(value = "PRODUCT_NAME")
    private String productName;

    /**
     * 库存数量
     */
    @TableField(value = "COUNT")
    private Integer count;

    /**
     * 单价
     */
    @TableField(value = "PRICE")
    private BigDecimal price;
}